
package com.food.mall.dao;

import com.food.mall.entity.FoodMallOrder;
import com.food.mall.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FoodMallOrderMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(FoodMallOrder record);

    int insertSelective(FoodMallOrder record);

    FoodMallOrder selectByPrimaryKey(Long orderId);

    FoodMallOrder selectByOrderNo(String orderNo);

    int updateByPrimaryKeySelective(FoodMallOrder record);

    int updateByPrimaryKey(FoodMallOrder record);

    List<FoodMallOrder> findFoodMallOrderList(PageQueryUtil pageUtil);

    int getTotalFoodMallOrders(PageQueryUtil pageUtil);

    List<FoodMallOrder> selectByPrimaryKeys(@Param("orderIds") List<Long> orderIds);

    int checkOut(@Param("orderIds") List<Long> orderIds);

    int closeOrder(@Param("orderIds") List<Long> orderIds, @Param("orderStatus") int orderStatus);

    int checkDone(@Param("orderIds") List<Long> asList);
}